package org.jactao.common;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicLong;

/**
 * Created by fanzetao on 2018/4/3.
 */
public class LRequest implements Serializable {

    public static AtomicLong rid = new AtomicLong(0);

    private long requestId;
    private Class<?> clazz;
    private String method;
    private String version;
    private Class<?>[] parameterTypes;
    private Object[] params;
    private long requestTime;

    public long getRequestId() {
        return requestId;
    }

    public void setRequestId(long requestId) {
        this.requestId = requestId;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    public void setParameterTypes(Class<?>[] parameterTypes) {
        this.parameterTypes = parameterTypes;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

    public long getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(long requestTime) {
        this.requestTime = requestTime;
    }
}
